package com.gee.spring.cloud.aerospace.simulate.mgt.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gee.cloud.common.core.domain.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 卫星遥测帧配置
 * </p>
 *
 * @author gee
 * @since 2024-07-04
 */
@Getter
@Setter
@TableName("gee_cloud_satellite_telemetry")
@Schema(description = "卫星遥测帧配置")
public class SatelliteTelemetry extends BaseEntity<SatelliteTelemetry> {

    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "卫星id")
    @TableField("sate_id")
    private Long sateId;

    @Schema(description = "帧长度")
    @TableField("frame_length")
    private Integer frameLength;

    @Schema(description = "填充")
    @TableField("fill_byte_str")
    private String fillByteStr;

    @Schema(description = "帧结构")
    @TableField("frame_struct")
    private String frameStruct;

    @Schema(description = "包结构")
    @TableField("package_struct")
    private String packageStruct;

    @Schema(description = "基础周期(毫秒)")
    @TableField("frame_duration_ms")
    private Integer frameDurationMs;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
